/*
 * @Author: nns4
 * @Date: 2019-10-30 17:37:50
 * @LastEditors: nns4
 * @LastEditTime: 2021-01-25 17:01:26
 * @FilePath: /vue/src/main.js
 * @Description:  main.js
 */
import Vue from 'vue'
import App from './App.vue'
//---------------引入路由-----------------//
import router from './router'
//---------------引入vuex-----------------//
import store from './store'
//---------------引入zant-----------------//
import 'vant/lib/index.less';
import Vant from 'vant';
Vue.use(Vant);
//---------------引入公共方法-----------------//
import "@/libs/tools";
import "@/libs/filter";
//---------------引入debug-----------------//
import eruda from 'eruda'
if (window.location.href.includes("debuger")) {
  eruda.init()
}

//---------------引入辅助类-----------------//
import "./main.less";
//---------------引入公用组件-----------------//
import toShopCard from "./components/toShopCard/toShopCard.vue"
Vue.component("toShopCard", toShopCard)
Vue.config.productionTip = false;

import dayjs from "dayjs"
Vue.prototype.dayjs = dayjs;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')